﻿local app = LibStub("AceAddon-3.0"):NewAddon('addonName', "AceEvent-3.0", "AceConsole-3.0")


local _G = getfenv(0)
local GetItemCount	= _G.GetItemCount
local GetItemIcon	= _G.GetItemIcon
local GetItemInfo	= _G.GetItemInfo
local GetSpellInfo	= _G.GetSpellInfo

local item = '33448'

local count = GetItemCount(item, false)
local info = GetItemInfo(item)


-- 查看背包数量
local bankcount = GetItemCount(item, true) - count
if count + bankcount > 0 then
    print('你有', count..(bankcount > 0 and (" (+"..bankcount..")") or ""))
end

print('---->', count, info)

